export default [
  {
    path: '/user',
    layout: false,
    routes: [
      {
        path: '/user',
        routes: [
          {
            name: 'login',
            path: '/user/login',
            component: './user/Login',
          },
          {
            name: 'login',
            path: '/user/login/irs',
            component: './user/Login',
          },
          {
            name: 'login',
            path: '/user/login/grs',
            component: './user/Login',
          },
          {
            name: 'login',
            path: '/user/login/registry',
            component: './user/Login',
          },
          {
            name: 'login',
            path: '/user/login/repository',
            component: './user/Login',
          },
          {
            name: 'login',
            path: '/user/login/normal',
            component: './user/Login',
          },
          {
            name: 'register',
            path: '/user/register',
            component: './user/UserRegister',
          },

        ],
      },
      {
        component: './404',
      },
    ],
  },
  {
    path: '/setting',
    layout: false,
    icon: 'smile',
    component: './Setting',
  },
  {
    path: '/welcome',
    name: 'welcome',
    icon: 'smile',
    component: './Welcome',
  },
  {
    path: '/user/management',
    name: 'userManagement',
    component: './user/PerInfoAdmin',
    access: 'normal_user',
  },
  {
    path: '/grs/apply',
    icon: 'smile',
    component: './grs/PrefixApply',
    // 不展示菜单
    menuRender: false,
  },
  {
    path: '/grs',
    name: 'grs',
    icon: 'crown',
    access: 'grs',
    routes: [
      {
        path: 'allocation',
        name: 'allocation',
        icon: 'smile',
        component: './grs/PrefixAllocation',
      },
      {
        path: 'management',
        name: 'management',
        icon: 'smile',
        component: './grs/PrefixManagement',
      },
    ],
  },
  {
    path: '/irs/apply',
    icon: 'smile',
    component: './irs/PrefixApply',
    // 不展示菜单
    menuRender: false,
  },
  {
    path: '/irs',
    name: 'irs',
    icon: 'smile',
    access: 'irs',
    routes: [
      {
        path: 'per-info-admin',
        name: 'per-info-admin',
        component: './irs/PerInfoAdmin',
      },
      {
        path: 'resolve',
        name: 'id-resolution',
        component: './irs/IdResolution',
      },
      {
        path: 'id-admin',
        name: 'id-admin',
        component: './irs/IdAdmin',
      },
      {
        path: 'allocation',
        name: 'allocation',
        icon: 'smile',
        component: './irs/PrefixAllocation',
      },
      {
        path: 'management',
        name: 'management',
        icon: 'smile',
        component: './irs/PrefixManagement',
      },
      {
        path: 'analysis',
        name: 'analysis',
        component: './irs/StatAnalysis',
      },
    ]
  },
  {
    path: '/regi',
    name: 'regi',
    icon: 'smile',
    access: 'reg',
    routes: [
      {
        path: 'management',
        name: 'management',
        component: './regi/MetaDataManagement',
      },
      {
        path: 'home',
        name: 'home',
        component: './regi/RegistryHome',
      },
      {
        path: 'search',
        // name: 'search',
        component: './regi/SearchList',
      },
      {
        path: 'manage',
        name: 'manage',
        component: './regi/RegManage',
      },
      {
        path: 'metadata',
        name: 'metadata',
        component: './irs/MetaDataManagement',
      },
      {
        path: 'analysis',
        name: 'analysis',
        component: './regi/StatAnalysis',
      },
    ]
  },
  {
    path: '/repo',
    name: 'repo',
    icon: 'smile',
    access: 'repo',
    routes: [
      {
        name: 'DoCreate',
        icon: 'table',
        access: 'repo',
        path: 'docreate',
        routes: [
          {
            name: "createJSONDo",
            icon: 'table',
            path: 'json',
            component: './repo/DoCreate',
          },
          {
            name: "createAPIDo",
            icon: 'table',
            path: 'api',
            component: './repo/APIDoCreate',
          },
          {
            name: "createDynamicAPIDo",
            icon: 'table',
            path: 'apivalue',
            component: './repo/DoWithAPIValueCreate',
          }
        ]
      },
      // {
      //   // name: 'DoDetail',
      //   path: 'dodetail',
      //   menuRender:false,
      //   component: './repo/DoDetail'
      // },
      {
        name: 'DoManage',
        icon: 'table',
        access: 'repo',
        path: 'domanage',
        component: './repo/DoManage'
      },
      {
        name: 'RepoManage',
        icon: 'table',
        access: 'repo',
        path: 'repomanage',
        component: './repo/RepoManage'
      },
      {
        path: 'analysis',
        name: 'analysis',
        component: './repo/StatAnalysis',
      },
    ]
  },
  {
    path: '/doa/dodetail/resolve',
    menuRender:false,
    component: './repo/DoDetail'
  },
  {
    path: '/app',
    // name: 'app',
    // 不展示菜单
    menuRender: false,
    icon: 'smile',
    routes: [
      {
        path: 'geoApp',
        // name: 'geoApp',
        component: './app/GeoApp',
      },
      ]
  },
  {
    path: '/',
    redirect: '/welcome',
  },
  {
    component: './404',
  },
];
